package cn.stylefeng.guns.modular.gridsystem.websocket;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author
 */
@Component
@Slf4j
public class RequestListener implements ServletRequestListener {
    @Override  
    public void requestInitialized(ServletRequestEvent sre)  {
        HttpSession session = ((HttpServletRequest) sre.getServletRequest()).getSession();
    }
    public RequestListener() {}  
  
    @Override  
    public void requestDestroyed(ServletRequestEvent arg0)  {}  
}  
